package com.traffic.mapper;

import java.util.List;
import com.traffic.domain.PerBusinessTripApplication;
import org.apache.ibatis.annotations.Mapper;

/**
 * 出差申请Mapper接口
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
@Mapper
public interface PerBusinessTripApplicationMapper 
{
    /**
     * 查询出差申请
     * 
     * @param tripId 出差申请主键
     * @return 出差申请
     */
    public PerBusinessTripApplication selectPerBusinessTripApplicationByTripId(Long tripId);

    /**
     * 查询出差申请列表
     * 
     * @param perBusinessTripApplication 出差申请
     * @return 出差申请集合
     */
    public List<PerBusinessTripApplication> selectPerBusinessTripApplicationList(PerBusinessTripApplication perBusinessTripApplication);

    /**
     * 新增出差申请
     * 
     * @param perBusinessTripApplication 出差申请
     * @return 结果
     */
    public int insertPerBusinessTripApplication(PerBusinessTripApplication perBusinessTripApplication);

    /**
     * 修改出差申请
     * 
     * @param perBusinessTripApplication 出差申请
     * @return 结果
     */
    public int updatePerBusinessTripApplication(PerBusinessTripApplication perBusinessTripApplication);

    /**
     * 删除出差申请
     * 
     * @param tripId 出差申请主键
     * @return 结果
     */
    public int deletePerBusinessTripApplicationByTripId(Long tripId);

    /**
     * 批量删除出差申请
     * 
     * @param tripIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePerBusinessTripApplicationByTripIds(Long[] tripIds);
}
